package com.javasea.spring.event;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *@ClassName DemoController
 *@Description TODO
 *@Author longxiaonan@163.com
 *@Date 2022/3/23 0023 15:26
 */
@RestController
public class DemoReconnectController {

    @Autowired
    private ReconnectEventPublisher reconnectEventPublisher;

    @GetMapping("/test/reconnect")
    public void test(){
        reconnectEventPublisher.publishEvent("aaaaaaa");
    }

}
